/************************************************************
	File:		Target.h
	Author:		Doug Monroe (dmonroe@fullsail.com)
	Course:		SGD 1304
	Purpose:	CTarget class handles the destructible target entity
************************************************************/


#pragma once

#include "Entity.h"


//***********************************************************
// CTarget class
//	- velocity-based entity
//	- overrides Update & Render methods to handle explosion
class CTarget : public CEntity
{
public:
	//*******************************************************
	CTarget( void );
	virtual ~CTarget( void );
	
	//*******************************************************
	// IEntity Interface:
	virtual void Update( float fElapsedTime )		override;
	virtual void Render( void )						override;
	virtual bool CheckCollision( IEntity* pOther )	override;
	
private:
	//*******************************************************
	// Attributes:
	int			m_nExplosionID;
	float		m_fExplosionTimer;
};

